import service from '@/utils/request'

export const getMemberList = (params) => { // 会员列表
    return new Promise((resolve,reject)=>{
      service.post('/member/getMemberList',params)
      .then(res=>{
        resolve(res) 
      })
    })
}

export const updateMember = (params) => { // 修好会员
    return new Promise((resolve,reject)=>{
      service.post('/member/saveMemberState',params)
      .then(res=>{
        resolve(res) 
      })
    })
}

export const getUserList = (params) => { // 用户列表
  return new Promise((resolve,reject)=>{
    service.post('/user/getUserList',params)
    .then(res=>{
      resolve(res) 
    })
  })
}